package Guigu6.Extends;

public class Student extends Man {

//	String name;
//	int age;
	String major;
	
	public Student()
	{
		
	}
	
	public Student(String name,int age,String major)
	{
		//this.age = age;
		this.major = major;
		this.name = name;
	}
	
//	public void eat()
//	{
//		System.out.println("吃饭");
//	}
//	
//	public void sleep()
//	{
//		System.out.println("睡觉");
//	}
	
	public void study()
	{
		System.out.println("学习");
	}
}
